package org.example.springcloud.enums;

import lombok.Data;
import lombok.Getter;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Getter
public enum ResultEnum {
    DATA_IS_EMPTY(-1001, "操作失败!"),
    DATA_IS_NULL(-1002, "数据为空!"),
    SUCCESS(0, "操作成功!"),
    ;

    private final Integer code;
    private final String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
